ig.module(
	'game.entities.base.entityBase'
)
.requires(
	'impact.entity'
)

.defines(function()
{
    EntityEntityBase = ig.Entity.extend(
    {
        animSheet: null,
        
        isMouseOver: function()
        {
            if (
                       (ig.input.mouse.x >= this.pos.x)
                    && (ig.input.mouse.x <= this.pos.x + this.size.x)
                    && (ig.input.mouse.y >= this.pos.y)
                    && (ig.input.mouse.y <= this.pos.y + this.size.y)
               )
            {
                return true;
            }
            
            return false;
        },
        
        isClicked: function()
        {
            if (this.isMouseOver() && ig.input.state('mouse_left'))               
            {
                return true;
            }
            
            return false;
        },
	
        wasClicked: function()
        {
            if (this.isMouseOver() && ig.input.pressed('mouse_left'))               
            {		
                return true;
            }
            
            return false;
	}	
    });
});